for i in range(33):
    for j in range(50):
        for k in range(100):
            if j+i+k == 100 and 3*i+2*j+k/2 ==100 :
                print('大马%d，中马%d，小马%d'%(i,j,k))
                continue
